package com.mgvlife.ddlw.vo;

import com.mgvlife.ddlw.entity.SignInInfo;

public class VoSignInInfo {
	private String id;
	private String openId;
	private String scheduleName;
	private String studentId;
	private String studentName;
	private String status;
	private String signInTime;

	public VoSignInInfo(SignInInfo signInInfo) {
		this.id = signInInfo.getId();
		this.openId = signInInfo.getStudent().getOpenId();
		this.scheduleName = signInInfo.getSchedule().getCourse().getName();
		this.studentId = signInInfo.getStudent().getStuId();
		this.studentName = signInInfo.getStudent().getName();
		this.signInTime = signInInfo.getSignInTime();
		switch (signInInfo.getSignInStatus()) {
		case -1:
			this.status = "未到";
			break;
		case 0:
			this.status = "迟到";
			break;
		case 1:
			this.status = "已到";
			break;
		case 2:
			this.status = "早退";
			break;
		case 3:
			this.status = "病假";
			break;
		case 4:
			this.status = "事假";
			break;
		default:
			this.status = "未到";
			break;
		}
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getScheduleName() {
		return scheduleName;
	}

	public void setScheduleName(String scheduleName) {
		this.scheduleName = scheduleName;
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSignInTime() {
		return signInTime;
	}

	public void setSignInTime(String signInTime) {
		this.signInTime = signInTime;
	}

}
